home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / CMComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  4.1 KB  |  136 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CMComponent.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __CMCOMPONENT__
  18. #define __CMCOMPONENT__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifndef __QUICKDRAW__
  27. #include <Quickdraw.h>
  28. #endif
  29. /*    #include <MixedMode.h>                                        */
  30. /*    #include <QuickdrawText.h>                                    */
  31.  
  32. #ifndef __COMPONENTS__
  33. #include <Components.h>
  34. #endif
  35.  
  36. #ifndef __WINDOWS__
  37. #include <Windows.h>
  38. #endif
  39. /*    #include <Memory.h>                                            */
  40. /*    #include <Events.h>                                            */
  41. /*        #include <OSUtils.h>                                    */
  42. /*    #include <Controls.h>                                        */
  43. /*        #include <Menus.h>                                        */
  44.  
  45. #ifndef __CMAPPLICATION__
  46. #include <CMApplication.h>
  47. #endif
  48. /*    #include <Printing.h>                                        */
  49. /*        #include <Errors.h>                                        */
  50. /*        #include <Dialogs.h>                                    */
  51. /*            #include <TextEdit.h>                                */
  52.  
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56.  
  57. #if GENERATINGPOWERPC
  58. #pragma options align=mac68k
  59. #endif
  60.  
  61. #ifdef __CFM68K__
  62. #pragma lib_export on
  63. #endif
  64.  
  65.  
  66. enum {
  67.     CMInterfaceVersion            = 0
  68. };
  69.  
  70. /* CMM Component function selectors */
  71. enum {
  72.     kCMInit                        = 0,
  73.     kCMMatchColors                = 1,
  74.     kCMGamutTest                = 2,
  75.     kCMMatchPixMap                = 3,
  76.     kCMCheckPixMap                = 4,
  77.     kCMConcatenateProfiles        = 5
  78. };
  79.  
  80. /* Profile Responder Components */
  81. enum {
  82.     ProfileResponderInterfaceRev = 0
  83. };
  84.  
  85. /* ProfileResponder Component function selectors */
  86. enum {
  87.     kCMGetProfile                = 0,
  88.     kCMSetProfile                = 1,
  89.     kCMSetProfileDescription    = 2,
  90.     kCMGetIndexedProfile        = 3,
  91.     kCMDeleteDeviceProfile        = 4,
  92.     kProfileResponderMaxSelector = kCMDeleteDeviceProfile
  93. };
  94.  
  95. typedef ComponentInstance ProfileResponder;
  96.  
  97. /* Required CMM Component routines */
  98. extern pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  99.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  100. extern pascal CMError CMMatchColors(ComponentInstance CMSession, CMColorList myColors, long count)
  101.  FIVEWORDINLINE(0x2F3C, 0x0008, 1, 0x7000, 0xA82A);
  102. extern pascal CMError CMCheckColors(ComponentInstance CMSession, CMColorList myColors, long count, CMGamutResult result)
  103.  FIVEWORDINLINE(0x2F3C, 0x000C, 2, 0x7000, 0xA82A);
  104. /* Optional CMM Component routines */
  105. extern pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, long refCon)
  106.  FIVEWORDINLINE(0x2F3C, 0x000c, 3, 0x7000, 0xA82A);
  107. extern pascal CMError CMCheckPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, BitMap *myBitMap, long refCon)
  108.  FIVEWORDINLINE(0x2F3C, 0x0010, 4, 0x7000, 0xA82A);
  109. extern pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  110.  FIVEWORDINLINE(0x2F3C, 0x000C, 5, 0x7000, 0xA82A);
  111. /* ProfileResponder Component routines */
  112. extern pascal CMError CMGetProfile(ProfileResponder myProfileResponder, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  113.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  114. extern pascal CMError CMSetProfile(ProfileResponder myProfileResponder, CMProfileHandle newProfile)
  115.  FIVEWORDINLINE(0x2F3C, 0x0004, 1, 0x7000, 0xA82A);
  116. extern pascal CMError CMSetProfileDescription(ProfileResponder myProfileResponder, long DeviceData, CMProfileHandle hProfile)
  117.  FIVEWORDINLINE(0x2F3C, 0x0008, 2, 0x7000, 0xA82A);
  118. extern pascal CMError CMGetIndexedProfile(ProfileResponder myProfileResponder, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  119.  FIVEWORDINLINE(0x2F3C, 0x000C, 3, 0x7000, 0xA82A);
  120. extern pascal CMError CMDeleteDeviceProfile(ProfileResponder myProfileResponder, CMProfileHandle deleteMe)
  121.  FIVEWORDINLINE(0x2F3C, 0x0004, 4, 0x7000, 0xA82A);
  122.  
  123. #ifdef __CFM68K__
  124. #pragma lib_export off
  125. #endif
  126.  
  127. #if GENERATINGPOWERPC
  128. #pragma options align=reset
  129. #endif
  130.  
  131. #ifdef __cplusplus
  132. }
  133. #endif
  134.  
  135. #endif /* __CMCOMPONENT__ */
  136.